<!DOCTYPE html>
<html lang="en">

<head>

    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <!-- <meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0"> -->
    <title>像素鸟小游戏--前端小学生小罗</title>
    <script src="rem.js"></script>
    <style>
        html,
        body {
            margin: 0;
            padding: 0;
            width: 100%;
            height: 100%;
            overflow: hidden;
            /* box-sizing: border-box; */
        }

        .game {
            position: relative;
            width: 800px;
            height: 600px;
            border: 1px solid black;
            margin: auto;
            overflow: hidden;
        }

        .sky {
            position: absolute;
            left: 0;
            top: 0;
            width: 200%;
            height: 100%;
            background-image: url('./img/sky.png');
        }

        .land {
            position: absolute;
            width: 200%;
            height: 112px;
            left: 0;
            background-image: url('./img/land.png');
        }

        .bird {
            width: 33px;
            height: 26px;
            position: absolute;
            left: 150px;
            top: 150px;
            background: url('img/bird.png');
            background-position: -8px -10px;
        }

        .pillar {
            position: absolute;
            width: 52px;
            left: 800px;
        }

        .up {
            background-image: url('./img/pipeUp.png');
            background-position: left top;
        }

        .down {
            background-image: url('./img/pipeDown.png');
            background-position: left bottom;
        }

        .text {
            width: 800px;
            text-align: center;
            line-height: 50px;
            font-size: 2rem;

        }

        .stop {
            position: absolute;
            width: 1rem;
            height: 1rem;
            left: 20px;
            top: 20px;
            z-index: 9;
            display: none;
        }

        .stop img {
            width: 100%;
            height: 100%;
        }

        .grade {
            position: absolute;
            width: 1rem;
            height: 1rem; 
            top: 20px;
            z-index: 9;
            font-size: 1rem;
            color: #fff;
            right: 20px;
        }

        .text {
            width: 100%;
            height: 100px;
            line-height: 100px;
            font-size: 0.7rem;
            text-align: center;
        }

        .hint {
            position: absolute;
            left: 0;
            top: 0;
            width: 100%;
            height: 600px;
        }

        .hint .over {
            position: absolute;
            width: 100%;
            height: 100%;
            line-height: 600px;
            color: #fff;
            font-size: 1rem;
            text-align: center;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 9;
            display: none;
        }

        .hint .start {
            position: relative;
            width: 100%;
            height: 100%;
            z-index: 9;
            background-color: rgba(0, 0, 0, 0.5);
            /* display: none; */
        }

        .hint .start .img {
            width: 1rem;
            height: 1rem;
            position: absolute;
            top: 0;
            bottom: 0;
            left: 0;
            right: 0;
            margin: auto;
        }
        .speedUp{ 
            position: absolute;
            width: 100%;
            height: 1rem;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            margin: auto; 
            margin-top: 100px;
            font-size: 1rem;
            text-align: center;
            color: #fff;
            display: none;
            z-index: 9;
        }
    </style>
</head>

<body>
    <div class="game">

        <!-- 暂停游戏 -->
        <div class="stop"><img src="./img/pause.png" alt=""></div>
        <div class="sky"></div>
        <div class="land"></div>
        <div class="bird"></div>
        
    </div>
    <div class="hint">
        <!-- 分数 -->
        <div class="grade">0</div>
        <div class="speedUp">加速！！！</div>
        <!-- 开始游戏 -->
        <div class="start">
            <img class="img" src="./img/start.png" alt="">
        </div>
        <div class="over">重新开始</div>
    </div>

    <div class="text">点击屏幕可控制小鸟跳跃</div>
    <script src="index.js"></script>
</body>

</html>